<template>
  <div>
    <!-- <keep-alive> -->
      <Sousuo></Sousuo>
      <Lunbotu></Lunbotu>
      <Daohang></Daohang>
      <Shangpin></Shangpin>
      <Dingbuann></Dingbuann>
    <!-- </keep-alive> -->
  </div>
</template>

<script>
import Sousuo from "../../components/Home/Sousuo";
import Lunbotu from "../../components/Home/Lunbotu";
import Daohang from "../../components/Home/Daohang";
import Shangpin from "../../components/Home/Shangpin";
import Dingbuann from "../../components/Home/Dingbuann";
export default {
  components: {
    Sousuo,
    Lunbotu,
    Daohang,
    Shangpin,
    Dingbuann,
  },
  data() {
    return {};
  },
  created() {
    this.$bus.$emit("FooterBar", true);
  },
  mounted() {
    let url = "http://127.0.0.1:8080/data/spsj.json";
    this.$axios.get(url).then((ret) => {
      // 给vuex 发送数据
      this.$store.dispatch("spSj", ret.data);
    });
  },
};
</script>

<style lang="scss" scoped>
</style>
